package com.ibuscloud.union.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客票购票数据文件表
 * </p>
 *
 * @author 书瞳
 * @since 2022-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_pd")
@ApiModel(value="Pd对象", description="客票购票数据文件表")
public class Pd implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long mainId;

    @ApiModelProperty(value = "银联订单id")
    @TableField("unionpayOrderId")
    private String unionpayOrderId;

    @ApiModelProperty(value = "客票平台订单号")
    private String id;

    @ApiModelProperty(value = "虚拟卡号")
    @TableField("cardNo")
    private String cardNo;

    @ApiModelProperty(value = "交通出行平台用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "运营商id")
    @TableField("opId")
    private String opId;

    @ApiModelProperty(value = "运营商名称")
    @TableField("opName")
    private String opName;

    @ApiModelProperty(value = "应用名称")
    @TableField("appId")
    private String appId;

    @ApiModelProperty(value = "业务id，区分业务场景，公交地铁")
    @TableField("serviceId")
    private String serviceId;

    @ApiModelProperty(value = "支付方式")
    @TableField("payType")
    private String payType;

    @ApiModelProperty(value = "原始票价")
    @TableField("originalPrice")
    private String originalPrice;

    @ApiModelProperty(value = "实付款")
    private String price;

    @ApiModelProperty(value = "客票类型编码")
    @TableField("ticketTypeId")
    private String ticketTypeId;

    @ApiModelProperty(value = "客票类型名称")
    @TableField("ticketTypeName")
    private String ticketTypeName;

    @ApiModelProperty(value = "客票票号")
    @TableField("ticketAccountId")
    private String ticketAccountId;

    @ApiModelProperty(value = "有效期开始，格式为：yyyy-MM-dd HH:mm:ss")
    @TableField("validFrom")
    private String validFrom;

    @ApiModelProperty(value = "有效期结束，格式为：yyyy-MM-dd HH:mm:ss")
    @TableField("validTo")
    private String validTo;

    @ApiModelProperty(value = "支付时间，格式为：yyyy-MM-dd HH:mm:ss")
    @TableField("payTime")
    private String payTime;

    @ApiModelProperty(value = "有效期限")
    private String period;

    @ApiModelProperty(value = "有效期单位 1-分钟 2-小时 3-天 4-周 5-月 6-年")
    @TableField("periodUnit")
    private String periodUnit;

    @ApiModelProperty(value = "该类客票总使用次数，0-不限")
    @TableField("totalUse")
    private String totalUse;

    @ApiModelProperty(value = "预留扩展字段")
    @TableField("extInfo")
    private String extInfo;

    @ApiModelProperty(value = "积分兑换票价")
    @TableField("exchangePrice")
    private String exchangePrice;


}
